home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Estrategia / ant_war.swf / scripts / DefineButton2_509 / BUTTONCONDACTION on(press).as next >
Encoding:
Text File  |  2007-03-13  |  305 b   |  8 lines

  1. on(press){
  2.    var buttonnum = parseInt(this._name.substr("buyitem_".length));
  3.    var message;
  4.    message = "You are about to buy " + _root.item_text[buttonnum] + "\n";
  5.    message += "This will cost you " + _root.item_cost[buttonnum] + " Gems\n";
  6.    _root.confirm_action("buy",buttonnum,message);
  7. }
  8.